package cn.richard.demo.tax.service;

import org.kie.api.KieBase;
import org.kie.api.runtime.KieSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 快速触发测试，使用 KieBase
 * @author Super
 *
 */
@Service
public class HelloRuleFireService {
	@Autowired
    private KieBase kieBase;
	
    public void fire(){
        KieSession kieSession = kieBase.newKieSession();
        kieSession.fireAllRules();
        kieSession.dispose();
    }
}
